//
//  HttpData.h
//  objcPostdata
//
//  Created by mac on 12-3-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol HttpPostDataDelegate; 

@interface HttpData : NSObject{
    id<HttpPostDataDelegate> httpdelegate;
}

+(HttpData*)HttpDataInstance;
-(void)pushDataByPost:(NSString*)postdata;
-(void)pushDataByPost:(NSString*)postdata url:(NSString*)url;
-(void)end;
@end

@protocol HttpPostDataDelegate <NSObject>

-(void)postDataSuccess:(NSHTTPURLResponse*)urlResponse;
-(void)postDataFail:(NSHTTPURLResponse*)urlResponse error:(NSError*)error;
@end